﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Lib.Paging;
using SDT.Model;
using System.Web.UI.WebControls;
using System.Web.Mvc;

namespace SDT.Admin.ViewModels
{
    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 28/06/2011
    /// </summary>
    public class VideoCategoryViewModels
    {
        public IPagedList<VideoCategory> Categories;
        public int? CurrentPubStatus;
        public string Keyword;
        public List<SelectListItem> ListStatusPub
        {
            get
            {
                var data = new List<SelectListItem>();
                for (int i = 0; i <= 1; i++)
                {
                    var list = new SelectListItem()
                    {
                        Value = i.ToString(),
                        Text = i == 0 ? "Không" : "Có"

                    };
                    data.Add(list);
                }
                return data;
            }
        }

        public string ImageRootUrl;
    }

    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 28/06/2011
    /// </summary>
    public class VideoCategoryInputModels
    {
        public VideoCategory Category = new VideoCategory();
        public TreeNodeCollection ListParentCategories = new TreeNodeCollection();
        public string ParentCatName = string.Empty;
    }
}
